package com.rdxer.repository;

import com.rdxer.model.Answer;
import com.rdxer.model.Major;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;


public interface AnswerRepository extends JpaRepository<Answer,String>,JpaSpecificationExecutor<Answer>{

    void deleteAllByAnswerSheetId(String answerSheetId);

    List<Answer> findAllByAnswerSheetIdAndPaperQuestionId(String answerSheetId, String paperQuestionRelationId);
    List<Answer> findAllByAnswerSheetId(String answerSheetId);

}
